#include<stdio.h>
#include<stdlib.h>

long str2l(const char * str)
{
          long result = 0;
          const char * p = str;
          for(; *p; ++p)
          {
                if(*p >= '0' && *p <= '9')
                {
                      result *= 10;
                      result += (*p - '0');
                }
          }
          if(*str == '-')
                  result *= -1;
          return result;        
}

int main()
{
    long a, b;
    char s1[16], s2[16];
    while(scanf("%s%s", s1, s2) != EOF)
    {
         a = str2l(s1);
         b = str2l(s2);
         printf("%ld\n", a+b);                
    }    
    
    system("pause");
    return 0;
}
